<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>销售报价单</title>
<link rel="stylesheet"
	href="/jquery-easyui-1.5.2/themes/bootstrap/easyui.css"></link>
<link rel="stylesheet" href="/jquery-easyui-1.5.2/themes/icon.css"></link>
<link rel="stylesheet" href="/css/wholeStyle.css"></link>
<script type="text/javascript" src="/jquery-easyui-1.5.2/jquery.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/initComponent.js"></script>
<script type="text/javascript" src="/js/publicJs.js"></script>

</head>
<body  style="margin: 0; padding: 0">
<div id="menu"  style="width:150px;">   
	    <div>新增</div>   
	    <div>修改</div>   
	    <div>删除</div>   
	    <div class="menu-sep"></div>   
	    <div>Exit</div>   
	</div>  
	<div id="insertMenu"  style="width:150px;">   
	    <div>保存</div>   
	    <div>放弃</div>   
	</div>  

	<div id="pp"
		style="background: #efefef; border: 1px solid #ccc; height: 30px;"></div>
	<!-- <div id="pp1" class="easyui-pagination" data-options="total:2000,pageSize:10" style="background:#efefef;border:1px solid #ccc;"></div>  -->
	<!-- 表单外层 -->
	<div class="form-warp">
		<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for=""><input id="fx" type="checkbox" style="width: 13px;position:relative;top:3px;">正式客户:</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="" class="label-blue">单据日期：</label> <input class="easyui-datebox"
						id="" />
				</div>
				<div class="form-item">
					<label for=""></label>地址:<input class="easyui-textbox" style="width:35px " data-options="required:true" /><input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="" class="label-blue"></label>单据编号:<input class="easyui-textbox"
					 id="" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="">有效日期:</label> <input class="easyui-datebox"
						id="" />
				</div>
				<div class="form-item">
					<label for="">币别:</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="">单价是否含税:</label> <input class="easyui-combobox"
						id="" value="含税" />
				</div>
				<div class="form-item">
					<label for="">汇率:</label> <input class="isdisabled"
						id="" />
				</div>
				
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="" class="label-blue">业务人员:</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="">制单人员:</label> <input class="easyui-textbox"
						id="" />
				</div>
				<div class="form-item">
					<label for="" class="label-blue">所属部门:</label> <input class="easyui-textbox"
						id="" value="含税" />
				</div>
				<div class="form-item">
					<label for="">复核人员:</label> <input class="easyui-textbox"
						id="" />
				</div>
				
			</div>
		</form>
	</div>
	<div class="grid-warp">
		<div class="easyui-tabs" style="height: 200px; width: '100%';flex:1;">
			<div title="内容" style="height: 20px;">
				<table id="cgqgd"></table>
			</div>
		</div>
	</div>
	<a href="javascript:void(0)" id="mb1" class="easyui-menubutton"    
        data-options="menu:'#mm1'">查询</a>  
<div id="mm1" style="width:150px;">  
    <div>历史交易记录查询</div>  
    <div>利润预估查询</div>  
</div>  
<a href="javascript:void(0)" id="mb2" class="easyui-menubutton"    
        data-options="menu:'#mm2'">功能</a>  
<div id="mm2" style="width:150px;">  
    <div>批次变更单价</div>  
    <div>发送Email</div>  
   
</div>
<span id="shenhe"></span>
</body>
<script type="text/javascript">

	$(function() {
		initMenu();
		$(".easyui-datebox").datebox("setValue",formatterDate(new Date()));
		$("#pp").pagination({
					height : 30,
					layout : [ 'sep' ],
					buttons : [ {
						iconCls : 'icon-my-first',
						handler : function() {
							alert("第一页");
						}
					},{
						iconCls : 'icon-my-prev',
						handler : function() {
						}
					},{
						iconCls : 'icon-my-next',
						handler : function() {
							closeDisabled();
						}
					},{
						iconCls : 'icon-my-last',
						handler : function() {
						}
					},{
						iconCls : 'icon-my-add',
						text : "新增",
						handler : function() {
							var tab=parent.$("#window-tabs").tabs("getSelected");
							changeTabStatus(tab,'新增');
							closeDisabled();
						}
					}, {
						iconCls : 'icon-my-update',
						text : "修改",
						handler : function() {
							alert("修改");
						}
					}, {
						iconCls : 'icon-my-delete',
						text : "删除",
						handler : function() {
							alert("删除");
						}
					}, {
						iconCls : 'icon-my-audit',
						text : "审核",
						handler : function() {
							alert("审核");
							$("#shenhe").hide();
						}
					} ]
				});
		$("form").find(".isdisabled").textbox();//先把从始至终为disabled 的控件初始化
		$("form").find(".isdisabled").textbox("disable");//再把他们设为disabled
		openDisabled();
		$("#cgqgd").datagrid({
			fit : true,
			rownumbers : true,
			columns : [ [ {
				field : '1',
				title : "(栏号)",
				width : 100,
				sortable:true
			}, {
				field : '2',
				title : "物料编号",
				width : 120,
				sortable:true
			}, {
				field : '3',
				title : "(物料名称)",
				width : 120,
				sortable:true
			}, {
				field : '4',
				title : "(规格型号)",
				width : 100,
				sortable:true
			}, {
				field : '5',
				title : "(单位名称)",
				width : 70
			}, {
				field : '6',
				title : "数量",
				width : 50
			}, {
				field : '7',
				title : "折扣前单价",
				width : 100
			}, {
				field : '8',
				title : "折数%",
				width : 80
			}, {
				field : '9',
				title : "单价",
				width : 50
			}, {
				field : '10',
				title : "(金额)",
				width : 70
			}, {
				field : '11',
				title : "税率(%)",
				width : 70
			}, {
				field : '15',
				title : "(税额)",
				width : 70
			}, {
				field : '13',
				title : "含税金额",
				width : 100
			}, {
				field : '14',
				title : "赠品",
				width : 70
			}, {
				field : '15',
				title : "分录备注",
				width : 100
			} ] ]
		});
	});
</script>
</body>
</html>